package com.slashmanx.goals2u;

public class Match {
	
	private int			id,
						minute,
						homeScore,
						awayScore;
	private String		homeTeam,
						awayTeam,
						type,
						league;
	private static int 	counter = 1;
	
	
	public Match(int minute, String homeTeam, String awayTeam, int homeScore, int awayScore, String type, String league) {
		this.id = counter;
		this.minute = minute;
		this.homeTeam = homeTeam;
		this.awayTeam = awayTeam;
		this.homeScore = homeScore;
		this.awayScore = awayScore;
		this.type = type;
		this.league = league;
	}


	public Match() {
		this.id = counter;
		counter++;
	}


	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}


	public int getMinute() {
		return minute;
	}


	public void setMinute(int minute) {
		this.minute = minute;
	}


	public int getHomeScore() {
		return homeScore;
	}


	public void setHomeScore(int homeScore) {
		this.homeScore = homeScore;
	}


	public int getAwayScore() {
		return awayScore;
	}


	public void setAwayScore(int awayScore) {
		this.awayScore = awayScore;
	}


	public String getHomeTeam() {
		return homeTeam;
	}


	public void setHomeTeam(String homeTeam) {
		this.homeTeam = homeTeam;
	}


	public String getAwayTeam() {
		return awayTeam;
	}


	public void setAwayTeam(String awayTeam) {
		this.awayTeam = awayTeam;
	}
	


	public static int getCounter() {
		return counter;
	}


	public static void setCounter(int counter) {
		Match.counter = counter;
	}
	
	


	public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}


	public String getLeague() {
		return league;
	}


	public void setLeague(String league) {
		this.league = league;
	}


	@Override
	public String toString() {
		return homeTeam + " "+ homeScore + " : "+ awayScore +" "+ awayTeam + " ("+ minute +")";
	}
	
	
	
	

}
